package com.mt.restaurant.service.staff;

import com.mt.common.core.web.base.PageDTO;
import com.mt.common.core.web.base.PageResultDTO;
import com.mt.restaurant.entity.staff.StaffAttendanceRecords;

import java.util.Date;
import java.util.List;

public interface StaffAttendanceRecordsService {
    /**
     * 根据分页参数查询学生信息集合
     *
     * @param pageDTO 分页条件
     */
    public PageResultDTO findStaffAttendanceRecordss(PageDTO pageDTO);

    /**
     * 查询全部学生信息集合
     *
     */
    public List<StaffAttendanceRecords> findAllStaffAttendanceRecordss();

    /**
     * 根据名称查询学生信息集合(只提取ID 和 Name)
     *
     * @param staffAttendanceRecordsName 名称
     */
    public List<StaffAttendanceRecords> findStaffAttendanceRecordssWithIdNameByName(String staffAttendanceRecordsName);

    /**
     * 查询所有学生信息集合(只提取ID 和 Name)
     *
     */
    public List<StaffAttendanceRecords> findAllStaffAttendanceRecordssWithIdName();

    /**
     * 根据ID查询指定的学生信息(只提取ID 和 Name)
     *
     * @param staffAttendanceRecordsId Id
     */
    public StaffAttendanceRecords findStaffAttendanceRecordssWithIdNameById(Long staffAttendanceRecordsId);

    /**
     * 根据ID查询指定的学生信息
     *
     * @param staffAttendanceRecordsId Id
     */
    public StaffAttendanceRecords findStaffAttendanceRecords(Long staffAttendanceRecordsId);

    /**
     * 根据ID查询指定的学生信息(包含外键)
     *
     * @param staffAttendanceRecordsId Id
     */
    public StaffAttendanceRecords findStaffAttendanceRecordsWithForeignName(Long staffAttendanceRecordsId);

    /**
     * 新增学生信息
     *
     * @param staffAttendanceRecords 实体对象
     */
    public StaffAttendanceRecords saveStaffAttendanceRecords(StaffAttendanceRecords staffAttendanceRecords);

    /**
     * 更新学生信息
     *
     * @param staffAttendanceRecords 实体对象
     */
    public StaffAttendanceRecords updateStaffAttendanceRecords(StaffAttendanceRecords staffAttendanceRecords);

    /**
     * 根据ID删除学生信息
     *
     * @param staffAttendanceRecordsId ID
     */
    public void deleteStaffAttendanceRecords(Long staffAttendanceRecordsId);

    List<StaffAttendanceRecords> findAllStaffAttendanceRecordsByStaffIdAndDate(Long staffId, Date startDate, Date endDate);
}
